$(function() {
	var banner = $.switchable({
		"tab" : "#slide span",
		"box" : "#piclist > li",
		"nowClass" : "on",
		"anim" : "scrollH",
		"duration" : 500
	});
 
	setInterval(function() {
		if ($("#slide span.on").hasClass("hover")) {
			return;
		}

		var tabIndex = banner.index;
		if ((tabIndex + 1) === $("#slide span").size()) {
			tabIndex = 0;
		} else {
			tabIndex++;
		}
		$("#slide span").eq(tabIndex).click();
	}, 3000);
	
	function showTime()

	{

	    var today = new Date();

	    alert("The time is: " + today.toString ());

	}
	
	setInterval ("showTime()", 2000);


});